Skip to content

Template path inclusion should use realpath - #123

Merged
markstory merged 2 commits into
2.xfrom
fix-include-path-realpath
Nov 26, 2026
Merged

markstory merged 2 commits into
2.xfrom
fix-include-path-realpath

Conversation

@markstory

Copy link
Copy Markdown
Member

If an application were to feed request data into include there is the chance for arbitrary template execution to occur. The previous fix did not account for the attacker guessing the application root path, and then being able to craft relative paths that resolve to the code to execute.

Thanks to zohuyhieuzo03 for reporting this

If an application were to feed request data into `include` there is the
chance for arbitrary template execution to occur. The previous fix did
not account for the attacker guessing the application root path, and
then being able to craft relative paths that resolve to the code to
execute.

Thanks to zohuyhieuzo03 for reporting this
@markstory
markstory merged commit 7479ad2 into 2.x Nov 26, 2026
7 of 8 checks passed
@markstory
markstory deleted the fix-include-path-realpath branch November 26, 2026 19:35
@markstory markstory added this to the 2.x milestone Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant